package net.qhzw.vip.qiyu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.qhzw.vip.qiyu.entity.RepairCode;
import net.qhzw.vip.qiyu.model.RepairCodeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RepairCodeMapper extends BaseMapper<RepairCode> {


    /***
     * 分页查询电动车
     * @param vehicleNumber 车辆编号
     * @param vehicleStatus 车辆状态
     * @return
     */
    List<RepairCodeVo> findByPage(@Param("vehicleNumber") String vehicleNumber,
                                  @Param("vehicleStatus") Byte vehicleStatus,
                                  @Param("communityId") Long communityId,
                                  @Param("shopId") Long shopId);


    int updateByPrimaryKeySelective(RepairCode record);


    void updateByUser(RepairCode repairCodeBef);


    boolean updateVehicleStatus(RepairCode repairCodeBef);

    int closeRepairCode(Long id);


}
